<?php
$this->breadcrumbs=array(
	'Users'=>array('index'),
	'Create',
);

$this->menu=array(
	array('label'=>'List User', 'url'=>array('index')),
	array('label'=>'Manage User', 'url'=>array('admin')),
);
?>

<h1>Create User</h1>

<?php
	switch(Yii::app()->user->role)
	{
		case 'teacher':
			echo $this->renderPartial('_form', array('model'=>$model));
			break;
		
		case 'admin':
			echo $this->renderPartial('_form', array('model'=>$model));
			break;
			
		default:
			echo "you don't have rights to view this page";
			break;
	}
?>